package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.PageIng;
import com.ruoyi.system.mapper.PageingMapper;
import com.ruoyi.system.service.PageIngService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PageIngServiceImpl implements PageIngService {
    @Autowired
    private PageingMapper pageingMapper;
    @Override
    public Integer add(PageIng shipin) {
        return pageingMapper.add(shipin);
    }

    @Override
    public List<PageIng> selectUserId(int userid) {
        return pageingMapper.selectUserId(userid);
    }

    @Override
    public List<PageIng> selectByclassify(int classify, int classifyname) {
        return pageingMapper.selectByclassify(classify,classifyname);
    }

    @Override
    public List<PageIng> selectByUseridclassify(int userid, int classify, int classifyname) {
        return pageingMapper.selectByUseridclassify(userid,classify,classifyname);
    }

    @Override
    public int delete(int id) {
        return pageingMapper.delete(id);
    }

    @Override
    public PageIng selectByid(int id) {
        return pageingMapper.selectByid(id);
    }

    @Override
    public int updateStatus1(int id) {
        return pageingMapper.updateStatus1(id);
    }

    @Override
    public int updateStatus0(int id) {
        return pageingMapper.updateStatus0(id);
    }

    @Override
    public List<PageIng> select() {
        return pageingMapper.select();
    }

    @Override
    public int look(PageIng pageIng) {
        return pageingMapper.look(pageIng);
    }

    @Override
    public List<PageIng> selectname(String name) {
        return pageingMapper.selectname(name);
    }
}
